package com.mathew.spring.appsp.model;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BookMapper {

    int addBook(Book book);

    String selectBookNameById(Integer id);

    @Delete("DELETE FROM book WHERE id = #{id}")
    int deleteBookById(Integer id);
    
    Book selectBook(Integer id);
}
